/**
   Class for PriceSchemeID
   Comp 474 RRS System
   @author Shipeng Liu
   @version 1.01 2008-11-23
*/
package rrs;

public class PriceSchemeID {
private int type;
private int member;
private int number;
//constructor
public PriceSchemeID(int type,int member,int number){
	this.type=type;
	this.member=member;
	this.number=number;
}
//increment by 1
public void increment(){
	number=number+1;
	}
//add leading "0"
public String toString(){
		if(type>=8)
			return String.valueOf(number);
		else if (number>=10)
		        return "00000"+String.valueOf(number);
			else
				return "000000"+String.valueOf(number);
	}

}
